<% if @posts and @posts.length > 0 -%>
<%# there were posts returned by this search -%>

<ul>
    <% for post in @posts -%>
	<li><a href="<%= Post.permalink(post) %>" title="<%= post.title %>"><%= post.title %></a>:&nbsp;<%= post_excerpt(post) %></li> 
	<% end -%>
</ul>

<div id="full_link"><a href="<%= Site.full_url + '/search/full?q=' + CGI.escape(params[:q].to_s) %>" title="View a full list of results">View a full list of results &rarr;</a></div>

<% else -%>
<% # no results, return message %>

There were no results, sorry. Try being more specific or a different query.

<% end -%>